<template>
  <view class="order-remark">
    <view class="remark-label">
      <text>备注</text>
    </view>
    <view class="remark-content">
      <text>{{ remark||'无' }}</text>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    remark: {
      type: String,
      default() {
        return "";
      }
    }
  }
};
</script>

<style lang="scss" scoped>
$padding-left: 50rpx;
$padding-top: 20rpx;
$font-size-base: $uni-font-size-lg;
$font-size-ms: $uni-font-size-base;
.order-remark {
  position: relative;
  color: $uni-color-subtitle;
  padding-left: 150rpx;
  .remark-label {
    position: absolute;
    left: 0;
    top: 0;
  }
  .remark-content {
    word-break: normal;
    width: auto;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
  }
}
</style>